package com.lagou.service.fallback;

import com.lagou.service.EmailServiceFeignClient;
import org.springframework.stereotype.Component;

/**
 * @Author : liuchangling
 * @Descrition :
 * @Date： Created in 6:00 下午 2022/1/31
 */
@Component
public class EmailServiceFeignClientFallback implements EmailServiceFeignClient {
    /**
     * 降级服务
     * @param email
     * @param code
     * @return
     */
    @Override
    public Boolean sendMail(String email, String code) {
        System.out.println("邮件服务异常");
        return false;
    }
}
